<div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                <h3 id="myModalLabel"><?= lang('btn_send_a_job') ?></h3>
            </div>		
            <div class="modal-body">
                <form id="form_send_job" method="post" action="<?= base_url() . 'project/do_upload'; ?>" enctype="multipart/form-data">
                    <fieldset>
                        <div class="control-group">
                            <input name="userfile" id="userfile" type="file" maxlength="20" />
                            <input name="project" id="project" type="hidden" value="<?= $id_project ?>" />
                            <label><?= lang('word_description') ?> <small>(<?= lang('word_optional') ?>)</small>:
                                <textarea name="description" class="col-md-6" rows="5" cols=""></textarea>
                            </label>
                            <!--input name="pass" id="pass" type="password" placeholder="<?= lang('placeholder_password'); ?>*" pattern=".{6,10}" title="Minimum 6 and maximun 10 characters" maxlength="10" required /-->
                        </div>

                        <div id="trace"></div>
                    </fieldset>

            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-danger" data-dismiss="modal" aria-hidden="true"><i class="icon-remove icon-white"></i> <?= lang('btn_close') ?></button>
                <button id="send_a_job" class="btn btn-success" type="submit"><i class="icon-ok icon-white"></i> <?= lang('btn_save') ?></button>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">

    $("#send_a_job").click(function() {
        $('#form_send_job').submit();
        $('.modal-body').html('<div class="progress progress-striped active"><div class="bar" style="width: 90%;"></div></div>');
    });
</script>